package detect;

import interfaces.Detect;

import java.util.HashMap;
import java.util.Map;

import util.CatchLanguage;

public class DetectLanguageJava implements Detect {

	@Override
	public void getInfo(Map<String, Object> obj) {
		String languageName = "Java";
		String[] footerWords = { "Grails", "JForum" };
		String[] cookieNames = { "JSESSIONID" };

		Map<String, String> detectHeaderMap = new HashMap<String, String>();
		detectHeaderMap.put("Server", "Resin, Coyote");
		detectHeaderMap.put("X-Powered-By", "Servlet, Jsp, Jsf");

		CatchLanguage.catchLanguage(detectHeaderMap, cookieNames, footerWords,
				obj, languageName);
	}
}
